define({ "api": [
  {
    "group": "banner信息",
    "type": "get",
    "url": "/api/banner/show",
    "title": "获取banner信息",
    "version": "0.0.0",
    "description": "<p>请求banner信息，不需要传参</p>",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "json",
            "optional": false,
            "field": "data",
            "description": "<p>请求数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n   \"state\":200,\n   \"title\":\"请求成功\",\n   \"data\":[{},{},{}...]\n}",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/banner/show"
      }
    ],
    "filename": "api/banner.js",
    "groupTitle": "banner信息",
    "name": "GetApiBannerShow"
  },
  {
    "group": "历史搜索模块",
    "type": "get",
    "url": "/search/show",
    "title": "获取历史搜索",
    "version": "0.0.0",
    "description": "<p>获取历史搜索</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "userId",
            "description": "<p>用户的唯一Id</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "json",
            "optional": false,
            "field": "data",
            "description": "<p>请求说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    stete:200,\n    title:\"获取记录成功\",\n    data:data\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/search/show"
      }
    ],
    "filename": "api/search.js",
    "groupTitle": "历史搜索模块",
    "name": "GetSearchShow"
  },
  {
    "group": "历史搜索模块",
    "type": "post",
    "url": "/search/add",
    "title": "添加历史记录",
    "version": "0.0.0",
    "description": "<p>添加历史记录</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "userId",
            "description": "<p>用户的唯一Id</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "searchText",
            "description": "<p>搜索关键字</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "json",
            "optional": false,
            "field": "data",
            "description": "<p>请求说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    stete:200,\n    title:\"请求商品品牌成功\",\n    data:[{},{},{}..]\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/search/add"
      }
    ],
    "filename": "api/search.js",
    "groupTitle": "历史搜索模块",
    "name": "PostSearchAdd"
  },
  {
    "group": "历史搜索模块",
    "type": "post",
    "url": "/search/del",
    "title": "删除历史记录",
    "version": "0.0.0",
    "description": "<p>删除历史记录</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "userId",
            "description": "<p>用户的唯一Id</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "searchId",
            "description": "<p>历史记录唯一Id</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "json",
            "optional": false,
            "field": "data",
            "description": "<p>请求说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    stete:200,\n    title:\"删除历史记录成功\",\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/search/del"
      }
    ],
    "filename": "api/search.js",
    "groupTitle": "历史搜索模块",
    "name": "PostSearchDel"
  },
  {
    "group": "商品模块",
    "type": "get",
    "url": "/pro",
    "title": "获取所有商品",
    "version": "0.0.0",
    "description": "<p>获取所有商品</p>",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "json",
            "optional": false,
            "field": "data",
            "description": "<p>请求说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    stete:200,\n    title:\"请求订单数据成功\",\n    data:[{},{}]\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/pro"
      }
    ],
    "filename": "api/pro.js",
    "groupTitle": "商品模块",
    "name": "GetPro"
  },
  {
    "group": "商品模块",
    "type": "get",
    "url": "/pro/brandColumn",
    "title": "根据商品分类和品牌获取商品数据",
    "version": "0.0.0",
    "description": "<p>根据商品分类和品牌获取商品数据</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "column",
            "description": "<p>商品的分类</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "brand",
            "description": "<p>商品的品牌</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "json",
            "optional": false,
            "field": "data",
            "description": "<p>请求说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    stete:200,\n    title:\"根据商品分类和品牌获取商品数据\",\n    data:[{},{},{}..]\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/pro/brandColumn"
      }
    ],
    "filename": "api/pro.js",
    "groupTitle": "商品模块",
    "name": "GetProBrandcolumn"
  },
  {
    "group": "商品模块",
    "type": "get",
    "url": "/pro/fl",
    "title": "获取商品分类",
    "version": "0.0.0",
    "description": "<p>获取商品分类</p>",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "array",
            "optional": false,
            "field": "data",
            "description": "<p>请求说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    stete:200,\n    title:\"请求商品分类成功\",\n    data:[1,2,3,...]\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/pro/fl"
      }
    ],
    "filename": "api/pro.js",
    "groupTitle": "商品模块",
    "name": "GetProFl"
  },
  {
    "group": "商品模块",
    "type": "get",
    "url": "/pro/getBrand",
    "title": "获取商品品牌",
    "version": "0.0.0",
    "description": "<p>获取商品品牌</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "column",
            "description": "<p>商品的分类</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "json",
            "optional": false,
            "field": "data",
            "description": "<p>请求说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    stete:200,\n    title:\"请求商品品牌成功\",\n    data:[{},{},{}..]\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/pro/getBrand"
      }
    ],
    "filename": "api/pro.js",
    "groupTitle": "商品模块",
    "name": "GetProGetbrand"
  },
  {
    "group": "商品模块",
    "type": "get",
    "url": "/pro/one",
    "title": "获取商品详情",
    "version": "0.0.0",
    "description": "<p>获取商品详情</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "proId",
            "description": "<p>商品的唯一Id</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "json",
            "optional": false,
            "field": "data",
            "description": "<p>请求说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    stete:200,\n    title:\"搜索成功\",\n    data:[{},{}]\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/pro/one"
      }
    ],
    "filename": "api/pro.js",
    "groupTitle": "商品模块",
    "name": "GetProOne"
  },
  {
    "group": "商品模块",
    "type": "get",
    "url": "/pro/page",
    "title": "分页获取商品",
    "version": "0.0.0",
    "description": "<p>分页获取商品</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "num",
            "description": "<p>一页显示的条数</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "index",
            "description": "<p>页码数</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "json",
            "optional": false,
            "field": "data",
            "description": "<p>请求说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    stete:200,\n    title:\"请求第${index}页数据成功\",\n    data:[{},{}]\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/pro/page"
      }
    ],
    "filename": "api/pro.js",
    "groupTitle": "商品模块",
    "name": "GetProPage"
  },
  {
    "group": "商品模块",
    "type": "get",
    "url": "/pro/search",
    "title": "根据关键字搜索商品",
    "version": "0.0.0",
    "description": "<p>根据关键字搜索商品</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "object",
            "optional": false,
            "field": "proName",
            "description": "<p>搜索关键字</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "json",
            "optional": false,
            "field": "data",
            "description": "<p>请求说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    stete:200,\n    title:\"搜索成功\",\n    data:[{},{}]\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/pro/search"
      }
    ],
    "filename": "api/pro.js",
    "groupTitle": "商品模块",
    "name": "GetProSearch"
  },
  {
    "group": "商品模块",
    "type": "get",
    "url": "/pro/sort",
    "title": "商品排序",
    "version": "0.0.0",
    "description": "<p>商品排序</p>",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "json",
            "optional": false,
            "field": "data",
            "description": "<p>请求说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    stete:200,\n    title:\"请求数据成功\",\n    data:[{},{}]\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/pro/sort"
      }
    ],
    "filename": "api/pro.js",
    "groupTitle": "商品模块",
    "name": "GetProSort"
  },
  {
    "group": "地址信息",
    "type": "get",
    "url": "/api/address",
    "title": "获取地址信息",
    "version": "0.0.0",
    "description": "<p>获取地址信息</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "userId",
            "description": "<p>用户的唯一Id</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "json",
            "optional": false,
            "field": "data",
            "description": "<p>请求数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    state:200,\n    title:\"请求地址信息成功\"\n    data:data[0]\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/address"
      }
    ],
    "filename": "api/address.js",
    "groupTitle": "地址信息",
    "name": "GetApiAddress"
  },
  {
    "group": "地址信息",
    "type": "post",
    "url": "/api/address/add",
    "title": "添加地址",
    "version": "0.0.0",
    "description": "<p>添加地址</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "userId",
            "description": "<p>用户的唯一Id</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "userName",
            "description": "<p>用户的唯一账号</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "tel",
            "description": "<p>电话号</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "addressDetail",
            "description": "<p>详细地址</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "Postal",
            "description": "<p>邮政编码</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "json",
            "optional": false,
            "field": "data",
            "description": "<p>请求数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    state:200,\n    title:\"第一次添加地址成功\"\n})\nres.send({\n    state:200,\n    title:\"更新地址成功\"\n})\nres.send({\n    state:300,\n    title:\"登录信息已失效\"\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/address/add"
      }
    ],
    "filename": "api/address.js",
    "groupTitle": "地址信息",
    "name": "PostApiAddressAdd"
  },
  {
    "group": "用户模块",
    "type": "get",
    "url": "/api/user/sendMsg",
    "title": "登录验证码",
    "version": "0.0.0",
    "description": "<p>发送登录短信验证码</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "tel",
            "description": "<p>接收验证码的手机号</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "object",
            "optional": false,
            "field": "data",
            "description": "<p>请求数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n   \"state\":200,\n   \"title\":\"请求成功\",\n   \"code\":\"123456\"\n}",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/user/sendMsg"
      }
    ],
    "filename": "api/user.js",
    "groupTitle": "用户模块",
    "name": "GetApiUserSendmsg"
  },
  {
    "group": "用户模块",
    "type": "get",
    "url": "/api/user/sendMsgR",
    "title": "注册验证码",
    "version": "0.0.0",
    "description": "<p>发送注册短信验证码</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "tel",
            "description": "<p>接收验证码的手机号</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "object",
            "optional": false,
            "field": "data",
            "description": "<p>请求数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n   \"state\":200,\n   \"title\":\"请求成功\",\n   \"code\":\"1234\"\n})\nres.send({\n   \"state\":20,\n   \"title\":\"手机号已被注册\"\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/user/sendMsgR"
      }
    ],
    "filename": "api/user.js",
    "groupTitle": "用户模块",
    "name": "GetApiUserSendmsgr"
  },
  {
    "group": "用户模块",
    "type": "get",
    "url": "/user/getUser",
    "title": "获取用户信息",
    "version": "0.0.0",
    "description": "<p>获取用户信息</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "userId",
            "description": "<p>用户的唯一Id</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "json",
            "optional": false,
            "field": "data",
            "description": "<p>请求说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    state:200,\n    title:\"请求用户信息成功\",\n    data:data[0]\n})\nres.send({\n    state:300,\n    title:\"登录信息已失效\"\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/user/getUser"
      }
    ],
    "filename": "api/user.js",
    "groupTitle": "用户模块",
    "name": "GetUserGetuser"
  },
  {
    "group": "用户模块",
    "type": "get",
    "url": "/user/login",
    "title": "用户名或手机号登录",
    "version": "0.0.0",
    "description": "<p>用户名或手机号登录</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "loginName",
            "description": "<p>用户输入的用户名</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "passWord",
            "description": "<p>用户输入密码</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "json",
            "optional": false,
            "field": "data",
            "description": "<p>请求说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    state:201,\n    title:\"用户名或手机号未注册\"\n})\nres.send({\n    state:200,\n    title:\"登录成功\",\n    id: \"userId\",\n    token\n})\nres.send({\n    state:202,\n    title:\"用户名或手机号与密码不符\"\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/user/login"
      }
    ],
    "filename": "api/user.js",
    "groupTitle": "用户模块",
    "name": "GetUserLogin"
  },
  {
    "group": "用户模块",
    "type": "get",
    "url": "/user/smslogin",
    "title": "验证码登录",
    "version": "0.0.0",
    "description": "<p>验证码登录</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "tel",
            "description": "<p>手机号</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "code",
            "description": "<p>验证码</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "json",
            "optional": false,
            "field": "data",
            "description": "<p>请求说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    stete:201,\n    title:\"手机号不正确\",\n})\nres.send({\n    state:202,\n    title:\"验证码不正确\"\n})\nres.send({\n    state:200,\n    title:\"登录成功\"\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/user/smslogin"
      }
    ],
    "filename": "api/user.js",
    "groupTitle": "用户模块",
    "name": "GetUserSmslogin"
  },
  {
    "group": "用户模块",
    "type": "post",
    "url": "/user/register",
    "title": "用户注册",
    "version": "0.0.0",
    "description": "<p>用户注册</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "tel",
            "description": "<p>手机号</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "userName",
            "description": "<p>用户名</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "passWord",
            "description": "<p>密码</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "code",
            "description": "<p>验证码</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "json",
            "optional": false,
            "field": "data",
            "description": "<p>请求说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    stete:201,\n    title:\"用户名已被注册\",\n})\n res.send({\n    state:202,\n    title:\"请先发送验证码\"\n})\nres.send({\n    state:203,\n    title:\"一个手机号只能注册一个账号\"\n})\nres.send({\n    stete:200,\n    title:\"注册成功\"\n})\nres.send({\n    state:204,\n    title:\"验证码不正确\"\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/user/register"
      }
    ],
    "filename": "api/user.js",
    "groupTitle": "用户模块",
    "name": "PostUserRegister"
  },
  {
    "group": "用户模块",
    "type": "post",
    "url": "/user/setUser",
    "title": "修改用户信息",
    "version": "0.0.0",
    "description": "<p>修改用户信息</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "userId",
            "description": "<p>用户的唯一Id</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "userData",
            "description": "<p>要修改的用户信息</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "json",
            "optional": false,
            "field": "data",
            "description": "<p>请求说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    state:200,\n    title:\"请求用户信息成功\",\n    data:data[0]\n})\nres.send({\n    state:300,\n    title:\"登录信息已失效\"\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/user/setUser"
      }
    ],
    "filename": "api/user.js",
    "groupTitle": "用户模块",
    "name": "PostUserSetuser"
  },
  {
    "group": "订单模块",
    "type": "get",
    "url": "/order",
    "title": "获取订单信息",
    "version": "0.0.0",
    "description": "<p>获取订单信息</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "userId",
            "description": "<p>用户的唯一Id</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "json",
            "optional": false,
            "field": "data",
            "description": "<p>请求说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    stete:200,\n    title:\"请求订单数据成功\",\n    data:[{},{}]\n})\nres.send({\n    state:300,\n    title:\"登录信息已失效\"\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/order"
      }
    ],
    "filename": "api/order.js",
    "groupTitle": "订单模块",
    "name": "GetOrder"
  },
  {
    "group": "订单模块",
    "type": "get",
    "url": "/order/orderDetail",
    "title": "订单详情",
    "version": "0.0.0",
    "description": "<p>订单详情</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "userId",
            "description": "<p>用户的唯一Id</p>"
          },
          {
            "group": "Parameter",
            "type": "object",
            "optional": false,
            "field": "orderId",
            "description": "<p>订单唯一Id</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    stete:200,\n    title:\"获取订单详情成功\",\n    data:data[0]\n})\nres.send({\n    state:300,\n    title:\"登录信息已失效\"\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/order/orderDetail"
      }
    ],
    "filename": "api/order.js",
    "groupTitle": "订单模块",
    "name": "GetOrderOrderdetail"
  },
  {
    "group": "订单模块",
    "type": "get",
    "url": "/order/wxPay",
    "title": "微信支付",
    "version": "0.0.0",
    "description": "<p>微信支付</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "body",
            "description": "<p>收账描述</p>"
          },
          {
            "group": "Parameter",
            "type": "object",
            "optional": false,
            "field": "out_trade_no",
            "description": "<p>订单号</p>"
          },
          {
            "group": "Parameter",
            "type": "object",
            "optional": false,
            "field": "total_fee",
            "description": "<p>价钱/单位：分</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    state:200,\n    title:\"生成二维码\",\n    data\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/order/wxPay"
      }
    ],
    "filename": "api/order.js",
    "groupTitle": "订单模块",
    "name": "GetOrderWxpay"
  },
  {
    "group": "订单模块",
    "type": "post",
    "url": "/order/add",
    "title": "添加订单",
    "version": "0.0.0",
    "description": "<p>添加订单</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "userId",
            "description": "<p>用户的唯一Id</p>"
          },
          {
            "group": "Parameter",
            "type": "object",
            "optional": false,
            "field": "proData",
            "description": "<p>要存的商品信息</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    stete:200,\n    title:\"添加订单成功\"\n})\nres.send({\n    state:300,\n    title:\"登录信息已失效\"\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/order/add"
      }
    ],
    "filename": "api/order.js",
    "groupTitle": "订单模块",
    "name": "PostOrderAdd"
  },
  {
    "group": "订单模块",
    "type": "post",
    "url": "/order/del",
    "title": "删除订单",
    "version": "0.0.0",
    "description": "<p>删除订单</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "object",
            "optional": false,
            "field": "orderId",
            "description": "<p>订单唯一Id</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    state:200,\n    title:\"删除成功\"\n})\nres.send({\n    state:300,\n    title:\"登录信息已失效\"\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/order/del"
      }
    ],
    "filename": "api/order.js",
    "groupTitle": "订单模块",
    "name": "PostOrderDel"
  },
  {
    "group": "订单模块",
    "type": "post",
    "url": "/order/pay",
    "title": "付款",
    "version": "0.0.0",
    "description": "<p>付款</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "object",
            "optional": false,
            "field": "orderId",
            "description": "<p>订单唯一Id</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    state:200,\n    title:\"付款成功\"\n})\nres.send({\n    state:300,\n    title:\"登录信息已失效\"\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/order/pay"
      }
    ],
    "filename": "api/order.js",
    "groupTitle": "订单模块",
    "name": "PostOrderPay"
  },
  {
    "group": "购物车",
    "type": "post",
    "url": "/api/cart/updateAllFlag",
    "title": "修改购物车所有选中状态",
    "version": "0.0.0",
    "description": "<p>修改购物车所有选中状态</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "userId",
            "description": "<p>用户Id</p>"
          },
          {
            "group": "Parameter",
            "type": "Boolean",
            "optional": false,
            "field": "flag",
            "description": "<p>商品选中状态</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "object",
            "optional": false,
            "field": "data",
            "description": "<p>请求数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    state:200,\n    title:\"修改选中状态成功\"\n})\nres.send({\n    state:300,\n    title:\"登录信息已失效，请重新登录\"\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/cart/updateAllFlag"
      }
    ],
    "filename": "api/cart.js",
    "groupTitle": "购物车",
    "name": "PostApiCartUpdateallflag"
  },
  {
    "group": "购物车",
    "type": "post",
    "url": "/api/cart/updateFlag",
    "title": "修改购物车选中状态",
    "version": "0.0.0",
    "description": "<p>修改购物车选中状态</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "userId",
            "description": "<p>用户Id</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "proId",
            "description": "<p>商品Id</p>"
          },
          {
            "group": "Parameter",
            "type": "Boolean",
            "optional": false,
            "field": "flag",
            "description": "<p>商品选中状态</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "object",
            "optional": false,
            "field": "data",
            "description": "<p>请求数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    state:200,\n    title:\"修改选中状态成功\"\n})\nres.send({\n    state:300,\n    title:\"登录信息已失效，请重新登录\"\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/cart/updateFlag"
      }
    ],
    "filename": "api/cart.js",
    "groupTitle": "购物车",
    "name": "PostApiCartUpdateflag"
  },
  {
    "group": "购物车模块",
    "type": "get",
    "url": "/api/cart",
    "title": "获取购物车数据",
    "version": "0.0.0",
    "description": "<p>获取购物车数据</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "object",
            "optional": false,
            "field": "userId",
            "description": "<p>用户的唯一Id</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "json",
            "optional": false,
            "field": "data",
            "description": "<p>请求数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n   \"state\":200,\n   \"title\":\"请求成功\",\n   \"data\":[{},{},{}...]\n}",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/cart"
      }
    ],
    "filename": "api/cart.js",
    "groupTitle": "购物车模块",
    "name": "GetApiCart"
  },
  {
    "group": "购物车模块",
    "type": "post",
    "url": "/api/cart/add",
    "title": "添加购物车",
    "version": "0.0.0",
    "description": "<p>添加购物车</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "object",
            "optional": false,
            "field": "userId",
            "description": "<p>用户的唯一Id</p>"
          },
          {
            "group": "Parameter",
            "type": "object",
            "optional": false,
            "field": "proId",
            "description": "<p>商品的唯一Id</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "json",
            "optional": false,
            "field": "data",
            "description": "<p>请求数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    state:200,\n    title:\"第一次添加购物车成功\"\n})\nres.send({\n    state:200,\n    title:\"购物车更新成功\"\n})\nres.send({\n    state:201,\n    title:\"商品不存在\"\n})\nres.send({\n    state:300,\n    title:\"登录信息已失效\"\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/cart/add"
      }
    ],
    "filename": "api/cart.js",
    "groupTitle": "购物车模块",
    "name": "PostApiCartAdd"
  },
  {
    "group": "购物车模块",
    "type": "post",
    "url": "/api/cart/del",
    "title": "删除购物车",
    "version": "0.0.0",
    "description": "<p>删除购物车</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "object",
            "optional": false,
            "field": "userId",
            "description": "<p>用户的唯一Id</p>"
          },
          {
            "group": "Parameter",
            "type": "object",
            "optional": false,
            "field": "proId",
            "description": "<p>商品的唯一Id</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "json",
            "optional": false,
            "field": "data",
            "description": "<p>请求数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n   \"state\":200,\n   \"title\":\"删除购物车商品成功\",\n}\nres.send({\n    state:300,\n    title:\"登录信息已失效\"\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/cart/del"
      }
    ],
    "filename": "api/cart.js",
    "groupTitle": "购物车模块",
    "name": "PostApiCartDel"
  },
  {
    "group": "购物车模块",
    "type": "post",
    "url": "/api/cart/setNum",
    "title": "修改购物车数量",
    "version": "0.0.0",
    "description": "<p>修改购物车数量</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "object",
            "optional": false,
            "field": "userId",
            "description": "<p>用户的唯一Id</p>"
          },
          {
            "group": "Parameter",
            "type": "object",
            "optional": false,
            "field": "proId",
            "description": "<p>商品的唯一Id</p>"
          },
          {
            "group": "Parameter",
            "type": "object",
            "optional": false,
            "field": "num",
            "description": "<p>商品数量</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "json",
            "optional": false,
            "field": "data",
            "description": "<p>请求数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n   \"state\":200,\n   \"title\":\"请求成功\",\n}",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/cart/setNum"
      }
    ],
    "filename": "api/cart.js",
    "groupTitle": "购物车模块",
    "name": "PostApiCartSetnum"
  }
] });
